package day07.zuoye.three;

import day01.arrayutil.Student;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        /*
        测试类 Main 的 main( ) 方法中，调用Student类的带参数的构造方法创建对象object1，调用
Undergraduate类的带参数的构造方法创建对象object2，然后分别调用它们的show( )方法。
         */
        Scanner sc = new Scanner(System.in);
        Student obiect1 = new Student(sc.next(), sc.nextInt());

        Undergraduate object2 = new Undergraduate(sc.next(), sc.nextInt(), sc.next());
        obiect1.show();
        object2.show();
    }
}
